package com.heima.controller.common;


import com.heima.mapper.UserMapper;
import com.heima.pojo.dto.UserDto;
import com.heima.pojo.po.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/user-service/role")
public class RoleController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping
    public List<Role> select() {
        return userMapper.select();
    }
}
